package com.qyer.util.log.service.impl;

import java.util.List;
import java.util.Map;

import com.qyer.util.log.entity.AppTrackLog;
import com.qyer.util.log.entity.TrackLog;
import com.qyer.util.log.service.LogService;
import com.qyer.util.log.util.LogFatory;



public class LogService4NginxImpl  implements LogService{
	
	TrackServiceImpl trackService = (TrackServiceImpl)LogFatory.getInstance(TrackServiceImpl.class.getName());
	AppTrackServiceImpl appTrackService = (AppTrackServiceImpl)LogFatory.getInstance(AppTrackServiceImpl.class.getName());
	AppTrackV2ServiceImpl appTrackV2Service = (AppTrackV2ServiceImpl)LogFatory.getInstance(AppTrackV2ServiceImpl.class.getName());

	@Override
	public TrackLog getTrackFormat(String line) {
		// TODO Auto-generated method stub
		return trackService.getTrack4NginxFormat(line);
	}
	
	@Override
	public TrackLog setUGC(TrackLog trackLog  ,List <String> listUGC , Map <String , String> cityMaps , Map <String, String > countryMaps ,Map<String ,String> cateMap, Map<String ,String> jn_info_Map, Map<String, String>  sw_map) {
		// TODO Auto-generated method stub
		return trackService.setCurlUGC(trackLog, listUGC, cityMaps, countryMaps, cateMap, jn_info_Map,sw_map);
	}

	@Override
	public AppTrackLog getAppTrackFormat(String line) {
		// TODO Auto-generated method stub
		return appTrackService.getTrack4NginxFormat(line);
	}

	@Override
	public AppTrackLog getAppTrackV2Format(String line) throws Exception {
		// TODO Auto-generated method stub
		return appTrackV2Service.getTrack4NginxFormat(line);
	}

}
